<figure>
  <div class="mermaid">
  {{ .Inner }}
  </div>
  {{ with .Get "title" }}
  <figcaption class="img_alt">{{ . }}</figcaption>
  {{ end }}
</figure>